package com.online.onlinestudent.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.online.onlinestudent.entity.Course;
import com.online.onlinestudent.entity.Record;
import com.online.onlinestudent.vo.RecordVO;

import java.util.List;

public interface RecordService extends IService<Record> {

    //根据学生id查询所有的课程记录
    List<Course> getRecordsByStudentId(Long studentId);

    List<Record> getRecordsByStudentIDAndCourseId(Long studentId,Long courseId);

    boolean saveOrUpdateRecord(Long student_id,Long course_id);

    List<RecordVO> getAllRecordsWithCourse();

    List<Record> getAllRecordByCourse(List<Course> courses);
}
